"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[123],{703:function(t,e,i){i.d(e,{default:function(){return r.a}});var n=i(7447),r=i.n(n)},8792:function(t,e,i){i.d(e,{default:function(){return r.a}});var n=i(5250),r=i.n(n)},1749:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return x}});let n=i(6921),r=i(1884),s=i(7437),o=r._(i(2265)),a=n._(i(4887)),l=n._(i(2251)),u=i(8630),h=i(6906),d=i(337);i(6184);let c=i(6993),p=n._(i(536)),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function f(t,e,i,n,r,s){let o=null==t?void 0:t.src;t&&t["data-loaded-src"]!==o&&(t["data-loaded-src"]=o,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&r(!0),null==i?void 0:i.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let n=!1,r=!1;i.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>n,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{n=!0,e.preventDefault()},stopPropagation:()=>{r=!0,e.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(t)}}))}function g(t){let[e,i]=o.version.split(".",2),n=parseInt(e,10),r=parseInt(i,10);return n>18||18===n&&r>=3?{fetchPriority:t}:{fetchpriority:t}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v=(0,o.forwardRef)((t,e)=>{let{src:i,srcSet:n,sizes:r,height:a,width:l,decoding:u,className:h,style:d,fetchPriority:c,placeholder:p,loading:m,unoptimized:v,fill:y,onLoadRef:x,onLoadingCompleteRef:b,setBlurComplete:P,setShowAltText:w,onLoad:S,onError:A,...T}=t;return(0,s.jsx)("img",{...T,...g(c),loading:m,width:l,height:a,decoding:u,"data-nimg":y?"fill":"1",className:h,style:d,sizes:r,srcSet:n,src:i,ref:(0,o.useCallback)(t=>{e&&("function"==typeof e?e(t):"object"==typeof e&&(e.current=t)),t&&(A&&(t.src=t.src),t.complete&&f(t,p,x,b,P,v))},[i,p,x,b,P,A,v,e]),onLoad:t=>{f(t.currentTarget,p,x,b,P,v)},onError:t=>{w(!0),"empty"!==p&&P(!0),A&&A(t)}})});function y(t){let{isAppRouter:e,imgAttributes:i}=t,n={as:"image",imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:i.crossOrigin,referrerPolicy:i.referrerPolicy,...g(i.fetchPriority)};return e&&a.default.preload?(a.default.preload(i.src,n),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:i.srcSet?void 0:i.src,...n},"__nimg-"+i.src+i.srcSet+i.sizes)})}let x=(0,o.forwardRef)((t,e)=>{let i=(0,o.useContext)(c.RouterContext),n=(0,o.useContext)(d.ImageConfigContext),r=(0,o.useMemo)(()=>{let t=m||n||h.imageConfigDefault,e=[...t.deviceSizes,...t.imageSizes].sort((t,e)=>t-e),i=t.deviceSizes.sort((t,e)=>t-e);return{...t,allSizes:e,deviceSizes:i}},[n]),{onLoad:a,onLoadingComplete:l}=t,f=(0,o.useRef)(a);(0,o.useEffect)(()=>{f.current=a},[a]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[x,b]=(0,o.useState)(!1),[P,w]=(0,o.useState)(!1),{props:S,meta:A}=(0,u.getImgProps)(t,{defaultLoader:p.default,imgConf:r,blurComplete:x,showAltText:P});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{...S,unoptimized:A.unoptimized,placeholder:A.placeholder,fill:A.fill,onLoadRef:f,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:w,ref:e}),A.priority?(0,s.jsx)(y,{isAppRouter:!i,imgAttributes:S}):null]})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},5827:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=i(6921)._(i(2265)).default.createContext({})},3044:function(t,e){function i(t){let{ampFirst:e=!1,hybrid:i=!1,hasQuery:n=!1}=void 0===t?{}:t;return e||i&&n}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return i}})},8630:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return a}}),i(6184);let n=i(7160),r=i(6906);function s(t){return void 0!==t.default}function o(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function a(t,e){var i;let a,l,u,{src:h,sizes:d,unoptimized:c=!1,priority:p=!1,loading:m,className:f,quality:g,width:v,height:y,fill:x=!1,style:b,onLoad:P,onLoadingComplete:w,placeholder:S="empty",blurDataURL:A,fetchPriority:T,layout:E,objectFit:C,objectPosition:V,lazyBoundary:M,lazyRoot:j,...D}=t,{imgConf:k,showAltText:R,blurComplete:O,defaultLoader:L}=e,F=k||r.imageConfigDefault;if("allSizes"in F)a=F;else{let t=[...F.deviceSizes,...F.imageSizes].sort((t,e)=>t-e),e=F.deviceSizes.sort((t,e)=>t-e);a={...F,allSizes:t,deviceSizes:e}}let B=D.loader||L;delete D.loader,delete D.srcSet;let I="__next_img_default"in B;if(I){if("custom"===a.loader)throw Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let t=B;B=e=>{let{config:i,...n}=e;return t(n)}}if(E){"fill"===E&&(x=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[E];t&&(b={...b,...t});let e={responsive:"100vw",fill:"100vw"}[E];e&&!d&&(d=e)}let U="",_=o(v),N=o(y);if("object"==typeof(i=h)&&(s(i)||void 0!==i.src)){let t=s(h)?h.default:h;if(!t.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(t));if(!t.height||!t.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(t));if(l=t.blurWidth,u=t.blurHeight,A=A||t.blurDataURL,U=t.src,!x){if(_||N){if(_&&!N){let e=_/t.width;N=Math.round(t.height*e)}else if(!_&&N){let e=N/t.height;_=Math.round(t.width*e)}}else _=t.width,N=t.height}}let z=!p&&("lazy"===m||void 0===m);(!(h="string"==typeof h?h:U)||h.startsWith("data:")||h.startsWith("blob:"))&&(c=!0,z=!1),a.unoptimized&&(c=!0),I&&h.endsWith(".svg")&&!a.dangerouslyAllowSVG&&(c=!0),p&&(T="high");let W=o(g),$=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:V}:{},R?{}:{color:"transparent"},b),H=O||"empty"===S?null:"blur"===S?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:_,heightInt:N,blurWidth:l,blurHeight:u,blurDataURL:A||"",objectFit:$.objectFit})+'")':'url("'+S+'")',G=H?{backgroundSize:$.objectFit||"cover",backgroundPosition:$.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:H}:{},Y=function(t){let{config:e,src:i,unoptimized:n,width:r,quality:s,sizes:o,loader:a}=t;if(n)return{src:i,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(t,e,i){let{deviceSizes:n,allSizes:r}=t;if(i){let t=/(^|\s)(1?\d?\d)vw/g,e=[];for(let n;n=t.exec(i);n)e.push(parseInt(n[2]));if(e.length){let t=.01*Math.min(...e);return{widths:r.filter(e=>e>=n[0]*t),kind:"w"}}return{widths:r,kind:"w"}}return"number"!=typeof e?{widths:n,kind:"w"}:{widths:[...new Set([e,2*e].map(t=>r.find(e=>e>=t)||r[r.length-1]))],kind:"x"}}(e,r,o),h=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((t,n)=>a({config:e,src:i,quality:s,width:t})+" "+("w"===u?t:n+1)+u).join(", "),src:a({config:e,src:i,quality:s,width:l[h]})}}({config:a,src:h,unoptimized:c,width:_,quality:W,sizes:d,loader:B});return{props:{...D,loading:z?"lazy":m,fetchPriority:T,width:_,height:N,decoding:"async",className:f,style:{...$,...G},sizes:Y.sizes,srcSet:Y.srcSet,src:Y.src},meta:{unoptimized:c,priority:p,placeholder:S,fill:x}}}},2251:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{defaultHead:function(){return d},default:function(){return f}});let n=i(6921),r=i(1884),s=i(7437),o=r._(i(2265)),a=n._(i(7392)),l=i(5827),u=i(7484),h=i(3044);function d(t){void 0===t&&(t=!1);let e=[(0,s.jsx)("meta",{charSet:"utf-8"})];return t||e.push((0,s.jsx)("meta",{name:"viewport",content:"width=device-width"})),e}function c(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===o.default.Fragment?t.concat(o.default.Children.toArray(e.props.children).reduce((t,e)=>"string"==typeof e||"number"==typeof e?t:t.concat(e),[])):t.concat(e)}i(6184);let p=["name","httpEquiv","charSet","itemProp"];function m(t,e){let{inAmpMode:i}=e;return t.reduce(c,[]).reverse().concat(d(i).reverse()).filter(function(){let t=new Set,e=new Set,i=new Set,n={};return r=>{let s=!0,o=!1;if(r.key&&"number"!=typeof r.key&&r.key.indexOf("$")>0){o=!0;let e=r.key.slice(r.key.indexOf("$")+1);t.has(e)?s=!1:t.add(e)}switch(r.type){case"title":case"base":e.has(r.type)?s=!1:e.add(r.type);break;case"meta":for(let t=0,e=p.length;t{let n=t.key||e;if(!i&&"link"===t.type&&t.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(e=>t.props.href.startsWith(e))){let e={...t.props||{}};return e["data-href"]=e.href,e.href=void 0,e["data-optimized-fonts"]=!0,o.default.cloneElement(t,e)}return o.default.cloneElement(t,{key:n})})}let f=function(t){let{children:e}=t,i=(0,o.useContext)(l.AmpStateContext),n=(0,o.useContext)(u.HeadManagerContext);return(0,s.jsx)(a.default,{reduceComponentsToState:m,headManager:n,inAmpMode:(0,h.isInAmpMode)(i),children:e})};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},7160:function(t,e){function i(t){let{widthInt:e,heightInt:i,blurWidth:n,blurHeight:r,blurDataURL:s,objectFit:o}=t,a=n?40*n:e,l=r?40*r:i,u=a&&l?"viewBox='0 0 "+a+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+s+"'/%3E%3C/svg%3E"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return i}})},337:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let n=i(6921)._(i(2265)),r=i(6906),s=n.default.createContext(r.imageConfigDefault)},6906:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{VALID_LOADERS:function(){return i},imageConfigDefault:function(){return n}});let i=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},7447:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{getImageProps:function(){return a},default:function(){return l}});let n=i(6921),r=i(8630),s=i(1749),o=n._(i(536)),a=t=>{let{props:e}=(0,r.getImgProps)(t,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}},l=s.Image},536:function(t,e){function i(t){let{config:e,src:i,width:n,quality:r}=t;return e.path+"?url="+encodeURIComponent(i)+"&w="+n+"&q="+(r||75)}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}}),i.__next_img_default=!0;let n=i},7392:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return a}});let n=i(2265),r="undefined"==typeof window,s=r?()=>{}:n.useLayoutEffect,o=r?()=>{}:n.useEffect;function a(t){let{headManager:e,reduceComponentsToState:i}=t;function a(){if(e&&e.mountedInstances){let r=n.Children.toArray(Array.from(e.mountedInstances).filter(Boolean));e.updateHead(i(r,t))}}if(r){var l;null==e||null==(l=e.mountedInstances)||l.add(t.children),a()}return s(()=>{var i;return null==e||null==(i=e.mountedInstances)||i.add(t.children),()=>{var i;null==e||null==(i=e.mountedInstances)||i.delete(t.children)}}),s(()=>(e&&(e._pendingUpdate=a),()=>{e&&(e._pendingUpdate=a)})),o(()=>(e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null),()=>{e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null)})),null}},5406:function(t,e,i){let n,r;i.d(e,{E:function(){return r2}});var s,o,a=i(2265);let l=(0,a.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),u=(0,a.createContext)({}),h=(0,a.createContext)(null),d="undefined"!=typeof document,c=d?a.useLayoutEffect:a.useEffect,p=(0,a.createContext)({strict:!1}),m=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),f="data-"+m("framerAppearId"),g={skipAnimations:!1,useManualTiming:!1};class v{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}let y=["prepare","read","update","preRender","render","postRender"];function x(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=y.reduce((t,e)=>(t[e]=function(t){let e=new v,i=new v,n=0,r=!1,s=!1,o=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{let l=a&&r,u=l?e:i;return s&&o.add(t),u.add(t)&&l&&r&&(n=e.order.length),t},cancel:t=>{i.remove(t),o.delete(t)},process:l=>{if(r){s=!0;return}if(r=!0,[e,i]=[i,e],i.clear(),n=e.order.length)for(let i=0;ii=!0),t),{}),o=t=>{s[t].process(r)},a=()=>{let s=g.useManualTiming?r.timestamp:performance.now();i=!1,r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1),r.timestamp=s,r.isProcessing=!0,y.forEach(o),r.isProcessing=!1,i&&e&&(n=!1,t(a))},l=()=>{i=!0,n=!0,r.isProcessing||t(a)};return{schedule:y.reduce((t,e)=>{let n=s[e];return t[e]=(t,e=!1,r=!1)=>(i||l(),n.schedule(t,e,r)),t},{}),cancel:t=>y.forEach(e=>s[e].cancel(t)),state:r,steps:s}}let{schedule:b,cancel:P}=x(queueMicrotask,!1);function w(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function S(t){return"string"==typeof t||Array.isArray(t)}function A(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let T=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],E=["initial",...T];function C(t){return A(t.animate)||E.some(e=>S(t[e]))}function V(t){return!!(C(t)||t.variants)}function M(t){return Array.isArray(t)?t.join(" "):t}let j={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},D={};for(let t in j)D[t]={isEnabled:e=>j[t].some(t=>!!e[t])};let k=(0,a.createContext)({}),R=(0,a.createContext)({}),O=Symbol.for("motionComponentSymbol"),L=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function F(t){if("string"!=typeof t||t.includes("-"));else if(L.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let B={},I=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],U=new Set(I);function _(t,{layout:e,layoutId:i}){return U.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!B[t]||"opacity"===t)}let N=t=>!!(t&&t.getVelocity),z={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},W=I.length,$=t=>e=>"string"==typeof e&&e.startsWith(t),H=$("--"),G=$("var(--"),Y=t=>!!G(t)&&X.test(t.split("/*")[0].trim()),X=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,q=(t,e)=>e&&"number"==typeof t?e.transform(t):t,Z=(t,e,i)=>i>e?e:i"number"==typeof t,parse:parseFloat,transform:t=>t},J={...K,transform:t=>Z(0,1,t)},Q={...K,default:1},tt=t=>Math.round(1e5*t)/1e5,te=/(-)?([\d]*\.?[\d])+/g,ti=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,tn=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function tr(t){return"string"==typeof t}let ts=t=>({test:e=>tr(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),to=ts("deg"),ta=ts("%"),tl=ts("px"),tu=ts("vh"),th=ts("vw"),td={...ta,parse:t=>ta.parse(t)/100,transform:t=>ta.transform(100*t)},tc={...K,transform:Math.round},tp={borderWidth:tl,borderTopWidth:tl,borderRightWidth:tl,borderBottomWidth:tl,borderLeftWidth:tl,borderRadius:tl,radius:tl,borderTopLeftRadius:tl,borderTopRightRadius:tl,borderBottomRightRadius:tl,borderBottomLeftRadius:tl,width:tl,maxWidth:tl,height:tl,maxHeight:tl,size:tl,top:tl,right:tl,bottom:tl,left:tl,padding:tl,paddingTop:tl,paddingRight:tl,paddingBottom:tl,paddingLeft:tl,margin:tl,marginTop:tl,marginRight:tl,marginBottom:tl,marginLeft:tl,rotate:to,rotateX:to,rotateY:to,rotateZ:to,scale:Q,scaleX:Q,scaleY:Q,scaleZ:Q,skew:to,skewX:to,skewY:to,distance:tl,translateX:tl,translateY:tl,translateZ:tl,x:tl,y:tl,z:tl,perspective:tl,transformPerspective:tl,opacity:J,originX:td,originY:td,originZ:tl,zIndex:tc,fillOpacity:J,strokeOpacity:J,numOctaves:tc};function tm(t,e,i,n){let{style:r,vars:s,transform:o,transformOrigin:a}=t,l=!1,u=!1,h=!0;for(let t in e){let i=e[t];if(H(t)){s[t]=i;continue}let n=tp[t],d=q(i,n);if(U.has(t)){if(l=!0,o[t]=d,!h)continue;i!==(n.default||0)&&(h=!1)}else t.startsWith("origin")?(u=!0,a[t]=d):r[t]=d}if(!e.transform&&(l||n?r.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:i=!0},n,r){let s="";for(let e=0;e({style:{},transform:{},transformOrigin:{},vars:{}});function tg(t,e,i){for(let n in e)N(e[n])||_(n,i)||(t[n]=e[n])}let tv=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ty(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tv.has(t)}let tx=t=>!ty(t);try{(s=require("@emotion/is-prop-valid").default)&&(tx=t=>t.startsWith("on")?!ty(t):s(t))}catch(t){}function tb(t,e,i){return"string"==typeof t?t:tl.transform(e+i*t)}let tP={offset:"stroke-dashoffset",array:"stroke-dasharray"},tw={offset:"strokeDashoffset",array:"strokeDasharray"};function tS(t,{attrX:e,attrY:i,attrScale:n,originX:r,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,d,c){if(tm(t,u,h,c),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:p,style:m,dimensions:f}=t;p.transform&&(f&&(m.transform=p.transform),delete p.transform),f&&(void 0!==r||void 0!==s||m.transform)&&(m.transformOrigin=function(t,e,i){let n=tb(e,t.x,t.width),r=tb(i,t.y,t.height);return`${n} ${r}`}(f,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==e&&(p.x=e),void 0!==i&&(p.y=i),void 0!==n&&(p.scale=n),void 0!==o&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?tP:tw;t[s.offset]=tl.transform(-n);let o=tl.transform(e),a=tl.transform(i);t[s.array]=`${o} ${a}`}(p,o,a,l,!1)}let tA=()=>({...tf(),attrs:{}}),tT=t=>"string"==typeof t&&"svg"===t.toLowerCase();function tE(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}let tC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tV(t,e,i,n){for(let i in tE(t,e,void 0,n),e.attrs)t.setAttribute(tC.has(i)?i:m(i),e.attrs[i])}function tM(t,e){let{style:i}=t,n={};for(let r in i)(N(i[r])||e.style&&N(e.style[r])||_(r,t))&&(n[r]=i[r]);return n}function tj(t,e){let i=tM(t,e);for(let n in t)(N(t[n])||N(e[n]))&&(i[-1!==I.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]);return i}function tD(t,e,i,n={},r={}){return"function"==typeof e&&(e=e(void 0!==i?i:t.custom,n,r)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==i?i:t.custom,n,r)),e}let tk=t=>Array.isArray(t),tR=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),tO=t=>tk(t)?t[t.length-1]||0:t;function tL(t){let e=N(t)?t.get():t;return tR(e)?e.toValue():e}let tF=t=>(e,i)=>{let n=(0,a.useContext)(u),r=(0,a.useContext)(h),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},n,r,s){let o={latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=tL(s[t]);let{initial:o,animate:a}=t,l=C(t),u=V(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,d=(h=h||!1===o)?a:o;return d&&"boolean"!=typeof d&&!A(d)&&(Array.isArray(d)?d:[d]).forEach(e=>{let i=tD(t,e);if(!i)return;let{transitionEnd:n,transition:s,...o}=i;for(let t in o){let e=o[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let t in n)r[t]=n[t]}),r}(n,r,s,t),renderState:e()};return i&&(o.mount=t=>i(n,t,o)),o})(t,e,n,r);return i?s():function(t){let e=(0,a.useRef)(null);return null===e.current&&(e.current=t()),e.current}(s)},tB=t=>t,{schedule:tI,cancel:tU,state:t_,steps:tN}=x("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tB,!0),tz={useVisualState:tF({scrapeMotionValuesFromProps:tj,createRenderState:tA,onMount:(t,e,{renderState:i,latestValues:n})=>{tI.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),tI.render(()=>{tS(i,n,{enableHardwareAcceleration:!1},tT(e.tagName),t.transformTemplate),tV(e,i)})}})},tW={useVisualState:tF({scrapeMotionValuesFromProps:tM,createRenderState:tf})};function t$(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let tH=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tG(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let tY=t=>e=>tH(e)&&t(e,tG(e));function tX(t,e,i,n){return t$(t,e,tY(i),n)}let tq=(t,e)=>i=>e(t(i)),tZ=(...t)=>t.reduce(tq);function tK(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tJ=tK("dragHorizontal"),tQ=tK("dragVertical");function t0(t){let e=!1;if("y"===t)e=tQ();else if("x"===t)e=tJ();else{let t=tJ(),i=tQ();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function t1(){let t=t0(!0);return!t||(t(),!1)}class t2{constructor(t){this.isMounted=!1,this.node=t}update(){}}function t3(t,e){let i="onHover"+(e?"Start":"End");return tX(t.current,"pointer"+(e?"enter":"leave"),(n,r)=>{if("touch"===n.pointerType||t1())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e),s[i]&&tI.update(()=>s[i](n,r))},{passive:!t.getProps()[i]})}class t5 extends t2{mount(){this.unmount=tZ(t3(this.node,!0),t3(this.node,!1))}unmount(){}}class t6 extends t2{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tZ(t$(this.node.current,"focus",()=>this.onFocus()),t$(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let t4=(t,e)=>!!e&&(t===e||t4(t,e.parentElement));function t8(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,tG(i))}class t9 extends t2{constructor(){super(...arguments),this.removeStartListeners=tB,this.removeEndListeners=tB,this.removeAccessibleListeners=tB,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),n=tX(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:n,globalTapTarget:r}=this.node.getProps();tI.update(()=>{r||t4(this.node.current,t.target)?i&&i(t,e):n&&n(t,e)})},{passive:!(i.onTap||i.onPointerUp)}),r=tX(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=tZ(n,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=t$(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=t$(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&t8("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&tI.update(()=>i(t,e))})}),t8("down",(t,e)=>{this.startPress(t,e)}))}),e=t$(this.node.current,"blur",()=>{this.isPressing&&t8("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=tZ(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&tI.update(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!t1()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&tI.update(()=>i(t,e))}mount(){let t=this.node.getProps(),e=tX(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=t$(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tZ(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let t7=new WeakMap,et=new WeakMap,ee=t=>{let e=t7.get(t.target);e&&e(t)},ei=t=>{t.forEach(ee)},en={some:0,all:1};class er extends t2{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:en[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;et.has(i)||et.set(i,{});let n=et.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(ei,{root:t,...e})),n[r]}(e);return t7.set(t,i),n.observe(t),()=>{t7.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}function es(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;ne[i]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.getVelocity()),e}(t))}let ea=t=>1e3*t,el=t=>t/1e3,eu={current:!1},eh=t=>Array.isArray(t)&&"number"==typeof t[0],ed=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,ec={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ed([0,.65,.55,1]),circOut:ed([.55,0,1,.45]),backIn:ed([.31,.01,.66,-.59]),backOut:ed([.33,1.53,.69,.99])},ep=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function em(t,e,i,n){if(t===e&&i===n)return tB;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=ep(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:ep(r(t),e,n)}let ef=em(.42,0,1,1),eg=em(0,0,.58,1),ev=em(.42,0,.58,1),ey=t=>Array.isArray(t)&&"number"!=typeof t[0],ex=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,eb=t=>e=>1-t(1-e),eP=t=>1-Math.sin(Math.acos(t)),ew=eb(eP),eS=ex(eP),eA=em(.33,1.53,.69,.99),eT=eb(eA),eE=ex(eT),eC={linear:tB,easeIn:ef,easeInOut:ev,easeOut:eg,circIn:eP,circInOut:eS,circOut:ew,backIn:eT,backInOut:eE,backOut:eA,anticipate:t=>(t*=2)<1?.5*eT(t):.5*(2-Math.pow(2,-10*(t-1)))},eV=t=>{if(Array.isArray(t)){tB(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return em(e,i,n,r)}return"string"==typeof t?(tB(void 0!==eC[t],`Invalid easing type '${t}'`),eC[t]):t},eM=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n},ej=(t,e,i)=>t+(e-t)*i;function eD(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}let ek=(t,e)=>i=>!!(tr(i)&&tn.test(i)&&i.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(i,e)),eR=(t,e,i)=>n=>{if(!tr(n))return n;let[r,s,o,a]=n.match(te);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},eO=t=>Z(0,255,t),eL={...K,transform:t=>Math.round(eO(t))},eF={test:ek("rgb","red"),parse:eR("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+eL.transform(t)+", "+eL.transform(e)+", "+eL.transform(i)+", "+tt(J.transform(n))+")"},eB={test:ek("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:eF.transform},eI={test:ek("hsl","hue"),parse:eR("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+ta.transform(tt(e))+", "+ta.transform(tt(i))+", "+tt(J.transform(n))+")"},eU=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},e_=[eB,eF,eI],eN=t=>e_.find(e=>e.test(t));function ez(t){let e=eN(t);tB(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===eI&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=eD(a,n,t+1/3),s=eD(a,n,t),o=eD(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let eW=(t,e)=>{let i=ez(t),n=ez(e),r={...i};return t=>(r.red=eU(i.red,n.red,t),r.green=eU(i.green,n.green,t),r.blue=eU(i.blue,n.blue,t),r.alpha=ej(i.alpha,n.alpha,t),eF.transform(r))},e$={test:t=>eF.test(t)||eB.test(t)||eI.test(t),parse:t=>eF.test(t)?eF.parse(t):eI.test(t)?eI.parse(t):eB.parse(t),transform:t=>tr(t)?t:t.hasOwnProperty("red")?eF.transform(t):eI.transform(t)},eH="number",eG="color",eY=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function eX(t){let e=t.toString(),i=e.match(eY)||[],n=[],r={color:[],number:[],var:[]},s=[];for(let t=0;t{let r="";for(let s=0;s"number"==typeof t?0:t,eJ={test:function(t){var e,i;return isNaN(t)&&tr(t)&&((null===(e=t.match(te))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(ti))||void 0===i?void 0:i.length)||0)>0},parse:eq,createTransformer:eZ,getAnimatableNone:function(t){let e=eq(t);return eZ(t)(e.map(eK))}};function eQ(t,e){return i=>i>0?e:t}function e0(t,e){return i=>ej(t,e,i)}function e1(t){return"number"==typeof t?e0:"string"==typeof t?Y(t)?eQ:e$.test(t)?eW:e5:Array.isArray(t)?e2:"object"==typeof t?e$.test(t)?eW:e3:eQ}function e2(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>e1(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in n)i[e]=n[e](t);return i}}let e5=(t,e)=>{let i=eJ.createTransformer(e),n=eX(t),r=eX(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?tZ(e2(function(t,e){var i;let n=[],r={color:0,var:0,number:0};for(let s=0;se[0];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],r=i||e6,s=t.length-1;for(let i=0;i{let i=0;if(a>1)for(;il(Z(t[0],t[s-1],e)):l}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=eM(0,e,n);t.push(ej(i,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||ev).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}function e8(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}function e9(t,e){return t*Math.sqrt(1-e*e)}let e7=["duration","bounce"],it=["stiffness","damping","mass"];function ie(t,e){return e.some(e=>void 0!==t[e])}function ii({keyframes:t,restDelta:e,restSpeed:i,...n}){let r;let s=t[0],o=t[t.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:h,duration:d,velocity:c,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ie(t,it)&&ie(t,e7)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:n=1}){let r,s;tB(t<=ea(10),"Spring duration must be 10 seconds or less");let o=1-e;o=Z(.05,1,o),t=Z(.01,10,el(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/e9(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=e9(Math.pow(e,2),o);return(n*i+i-s)*Math.exp(-n)*(-r(e)+.001>0?-1:1)/a}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=ea(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...n,velocity:-el(n.velocity||0)}),m=c||0,f=u/(2*Math.sqrt(l*h)),g=o-s,v=el(Math.sqrt(l/h)),y=5>Math.abs(g);if(i||(i=y?.01:2),e||(e=y?.005:.5),f<1){let t=e9(v,f);r=e=>o-Math.exp(-f*v*e)*((m+f*v*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===f)r=t=>o-Math.exp(-v*t)*(g+(m+v*g)*t);else{let t=v*Math.sqrt(f*f-1);r=e=>{let i=Math.exp(-f*v*e),n=Math.min(t*e,300);return o-i*((m+f*v*g)*Math.sinh(n)+t*g*Math.cosh(n))/t}}return{calculatedDuration:p&&d||null,next:t=>{let n=r(t);if(p)a.done=t>=d;else{let s=m;0!==t&&(s=f<1?e8(r,t,n):0);let l=Math.abs(s)<=i,u=Math.abs(o-n)<=e;a.done=l&&u}return a.value=a.done?o:n,a}}}function ir({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c;let p=t[0],m={done:!1,value:p},f=t=>void 0!==a&&tl,g=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)-v*Math.exp(-t/n),P=t=>x+b(t),w=t=>{let e=b(t),i=P(t);m.done=Math.abs(e)<=u,m.value=m.done?x:i},S=t=>{f(m.value)&&(d=t,c=ii({keyframes:[m.value,g(m.value)],velocity:e8(P,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,w(t),S(t)),void 0!==d&&t>d)?c.next(t-d):(e||w(t),m)}}}function is(){n=void 0}let io={now:()=>(void 0===n&&io.set(t_.isProcessing||g.useManualTiming?t_.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(is)}},ia=t=>{let e=({timestamp:e})=>t(e);return{start:()=>tI.update(e,!0),stop:()=>tU(e),now:()=>t_.isProcessing?t_.timestamp:io.now()}};function il(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let iu={decay:ir,inertia:ir,tween:e4,keyframes:e4,spring:ii},ih=t=>t/100;function id({autoplay:t=!0,delay:e=0,driver:i=ia,keyframes:n,type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:h,onUpdate:d,...c}){let p,m,f,g,v,y=1,x=!1,b=()=>{m=new Promise(t=>{p=t})};b();let P=iu[r]||e4;P!==e4&&"number"!=typeof n[0]&&(g=tZ(ih,e6(n[0],n[1])),n=[0,100]);let w=P({...c,keyframes:n});"mirror"===a&&(v=P({...c,keyframes:[...n].reverse(),velocity:-(c.velocity||0)}));let S="idle",A=null,T=null,E=null;null===w.calculatedDuration&&s&&(w.calculatedDuration=il(w));let{calculatedDuration:C}=w,V=1/0,M=1/0;null!==C&&(M=(V=C+o)*(s+1)-o);let j=0,D=t=>{if(null===T)return;y>0&&(T=Math.min(T,t)),y<0&&(T=Math.min(t-M/y,T));let i=(j=null!==A?A:Math.round(t-T)*y)-e*(y>=0?1:-1),r=y>=0?i<0:i>M;j=Math.max(i,0),"finished"===S&&null===A&&(j=M);let l=j,u=w;if(s){let t=Math.min(j,M)/V,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,s+1))%2&&("reverse"===a?(i=1-i,o&&(i-=o/V)):"mirror"===a&&(u=v)),l=Z(0,1,i)*V}let h=r?{done:!1,value:n[0]}:u.next(l);g&&(h.value=g(h.value));let{done:c}=h;r||null===C||(c=y>=0?j>=M:j<=0);let p=null===A&&("finished"===S||"running"===S&&c);return d&&d(h.value),p&&O(),h},k=()=>{f&&f.stop(),f=void 0},R=()=>{S="idle",k(),p(),b(),T=E=null},O=()=>{S="finished",h&&h(),k(),p()},L=()=>{if(x)return;f||(f=i(D));let t=f.now();l&&l(),null!==A?T=t-A:T&&"finished"!==S||(T=t),"finished"===S&&b(),E=T,A=null,S="running",f.start()};t&&L();let F={then:(t,e)=>m.then(t,e),get time(){return el(j)},set time(newTime){j=newTime=ea(newTime),null===A&&f&&0!==y?T=f.now()-newTime/y:A=newTime},get duration(){return el(null===w.calculatedDuration?il(w):w.calculatedDuration)},get speed(){return y},set speed(newSpeed){if(newSpeed===y||!f)return;y=newSpeed,F.time=el(j)},get state(){return S},play:L,pause:()=>{S="paused",A=j},stop:()=>{x=!0,"idle"!==S&&(S="idle",u&&u(),R())},cancel:()=>{null!==E&&D(E),R()},complete:()=>{S="finished"},sample:t=>(T=0,D(t))};return F}let ic=(o=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===r&&(r=o()),r)),ip=new Set(["opacity","clipPath","filter","transform"]),im=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function t(e){return!!(!e||"string"==typeof e&&ec[e]||eh(e)||Array.isArray(e)&&e.every(t))}(e.ease),ig={type:"spring",stiffness:500,damping:25,restSpeed:10},iv=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),iy={type:"keyframes",duration:.8},ix={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ib=(t,{keyframes:e})=>e.length>2?iy:U.has(t)?t.startsWith("scale")?iv(e[1]):ig:ix,iP=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eJ.test(e)||"0"===e)&&!e.startsWith("url(")),iw=new Set(["brightness","contrast","saturate","opacity"]);function iS(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(te)||[];if(!n)return t;let r=i.replace(n,""),s=iw.has(e)?1:0;return n!==i&&(s*=100),e+"("+s+r+")"}let iA=/([a-z-]*)\(.*?\)/g,iT={...eJ,getAnimatableNone:t=>{let e=t.match(iA);return e?e.map(iS).join(" "):t}},iE={...tp,color:e$,backgroundColor:e$,outlineColor:e$,fill:e$,stroke:e$,borderColor:e$,borderTopColor:e$,borderRightColor:e$,borderBottomColor:e$,borderLeftColor:e$,filter:iT,WebkitFilter:iT},iC=t=>iE[t];function iV(t,e){let i=iC(t);return i!==iT&&(i=eJ),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let iM=t=>/^0[^.\s]+$/.test(t);function ij(t,e){return t[e]||t.default||t}let iD=(t,e,i,n={})=>r=>{let s=ij(n,t)||{},o=s.delay||n.delay||0,{elapsed:a=0}=n;a-=ea(o);let l=function(t,e,i,n){let r,s;let o=iP(e,i);r=Array.isArray(i)?[...i]:[null,i];let a=void 0!==n.from?n.from:t.get(),l=[];for(let t=0;t{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{r(),s.onComplete&&s.onComplete()}};if(!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(s)&&(p={...p,...ib(t,p)}),p.duration&&(p.duration=ea(p.duration)),p.repeatDelay&&(p.repeatDelay=ea(p.repeatDelay)),!d||!c||eu.current||!1===s.type||g.skipAnimations)return function({keyframes:t,delay:e,onUpdate:i,onComplete:n}){let r=()=>(i&&i(t[t.length-1]),n&&n(),{time:0,speed:1,duration:0,play:tB,pause:tB,stop:tB,then:t=>(t(),Promise.resolve()),cancel:tB,complete:tB});return e?id({keyframes:[0,1],duration:0,delay:e,onComplete:r}):r()}(eu.current?{...p,delay:0}:p);if(!n.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let i=function(t,e,{onUpdate:i,onComplete:n,...r}){let s,o;if(!(ic()&&ip.has(e)&&!r.repeatDelay&&"mirror"!==r.repeatType&&0!==r.damping&&"inertia"!==r.type))return!1;let a=!1,l=!1,u=()=>{o=new Promise(t=>{s=t})};u();let{keyframes:h,duration:d=300,ease:c,times:p}=r;if(im(e,r)){let t=id({...r,repeat:0,delay:0}),e={done:!1,value:h[0]},i=[],n=0;for(;!e.done&&n<2e4;)e=t.sample(n),i.push(e.value),n+=10;p=void 0,h=i,d=n-10,c="linear"}let m=function(t,e,i,{delay:n=0,duration:r,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e){if(e)return eh(e)?ed(e):Array.isArray(e)?e.map(t):ec[e]}(a);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(t.owner.current,e,h,{...r,duration:d,ease:c,times:p}),f=()=>{l=!1,m.cancel()},g=()=>{l=!0,tI.update(f),s(),u()};return m.onfinish=()=>{l||(t.set(function(t,{repeat:e,repeatType:i="loop"}){let n=e&&"loop"!==i&&e%2==1?0:t.length-1;return t[n]}(h,r)),n&&n(),g())},{then:(t,e)=>o.then(t,e),attachTimeline:t=>(m.timeline=t,m.onfinish=null,tB),get time(){return el(m.currentTime||0)},set time(newTime){m.currentTime=ea(newTime)},get speed(){return m.playbackRate},set speed(newSpeed){m.playbackRate=newSpeed},get duration(){return el(d)},play:()=>{a||(m.play(),tU(f))},pause:()=>m.pause(),stop:()=>{if(a=!0,"idle"===m.playState)return;let{currentTime:e}=m;if(e){let i=id({...r,autoplay:!1});t.setWithVelocity(i.sample(e-10).value,i.sample(e).value,10)}g()},complete:()=>{l||m.finish()},cancel:g}}(e,t,p);if(i)return i}return id(p)};function ik(t){return!!(N(t)&&t.add)}let iR=t=>/^\-?\d*\.?\d+$/.test(t);function iO(t,e){-1===t.indexOf(e)&&t.push(e)}function iL(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class iF{constructor(){this.subscriptions=[]}add(t){return iO(this.subscriptions,t),()=>iL(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r!isNaN(parseFloat(t)),iI={current:void 0};class iU{constructor(t,e={}){this.version="11.0.8",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=io.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=iB(this.current),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=io.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new iF);let i=this.events[t].add(e);return"change"===t?()=>{i(),tI.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return iI.current&&iI.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=io.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function i_(t,e){return new iU(t,e)}let iN=t=>e=>e.test(t),iz=[K,tl,ta,to,th,tu,{test:t=>"auto"===t,parse:t=>t}],iW=t=>iz.find(iN(t)),i$=[...iz,e$,eJ],iH=t=>i$.find(iN(t));function iG(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...a}=t.makeTargetAnimatable(e),l=t.getValue("willChange");n&&(s=n);let u=[],h=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let n=t.getValue(e),r=a[e];if(!n||void 0===r||h&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(h,e))continue;let o={delay:i,elapsed:0,...ij(s||{},e)};if(window.HandoffAppearAnimations){let i=t.getProps()[f];if(i){let t=window.HandoffAppearAnimations(i,e,n,tI);null!==t&&(o.elapsed=t,o.isHandoff=!0)}}let d=!o.isHandoff&&!function(t,e){let i=t.get();if(!Array.isArray(e))return i!==e;for(let t=0;tl.remove(e))),u.push(c)}return o&&Promise.all(u).then(()=>{o&&function(t,e){let i=eo(t,e),{transitionEnd:n={},transition:r={},...s}=i?t.makeTargetAnimatable(i,!1):{};for(let e in s={...s,...n}){let i=tO(s[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,i_(i))}}(t,o)}),u}function iY(t,e,i={}){let n=eo(t,e,i.custom),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(iG(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(iX).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(iY(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+n,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}function iX(t,e){return t.sortNodePosition(e)}let iq=[...T].reverse(),iZ=T.length;function iK(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class iJ extends t2{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>iY(t,e,i)));else if("string"==typeof e)n=iY(t,e,i);else{let r="function"==typeof e?eo(t,e,i.custom):e;n=Promise.all(iG(t,r,i))}return n.then(()=>t.notify("AnimationComplete",e))})(t,e,i))),i={animate:iK(!0),whileInView:iK(),whileHover:iK(),whileTap:iK(),whileDrag:iK(),whileFocus:iK(),exit:iK()},n=!0,r=(e,i)=>{let n=eo(t,i);if(n){let{transition:t,transitionEnd:i,...r}=n;e={...e,...r,...i}}return e};function s(s,o){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],h=new Set,d={},c=1/0;for(let e=0;ec&&v),P=!1,w=Array.isArray(g)?g:[g],T=w.reduce(r,{});!1===y&&(T={});let{prevResolvedValues:E={}}=f,C={...E,...T},V=t=>{b=!0,h.has(t)&&(P=!0,h.delete(t)),f.needsAnimating[t]=!0};for(let t in C){let e=T[t],i=E[t];if(!d.hasOwnProperty(t))(tk(e)&&tk(i)?es(e,i):e===i)?void 0!==e&&h.has(t)?V(t):f.protectedKeys[t]=!0:void 0!==e?V(t):h.add(t)}f.prevProp=g,f.prevResolvedValues=T,f.isActive&&(d={...d,...T}),n&&t.blockInitialAnimation&&(b=!1),b&&(!x||P)&&u.push(...w.map(t=>({animation:t,options:{type:m,...s}})))}if(h.size){let e={};h.forEach(i=>{let n=t.getBaseTarget(i);void 0!==n&&(e[i]=n)}),u.push({animation:e})}let m=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(u):Promise.resolve()}return{animateChanges:s,setActive:function(e,n,r){var o;if(i[e].isActive===n)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let a=s(r,e);for(let t in i)i[t].protectedKeys={};return a},setAnimateFunction:function(i){e=i(t)},getState:()=>i}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),A(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let iQ=0;class i0 extends t2{constructor(){super(...arguments),this.id=iQ++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:i}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let r=this.node.animationState.setActive("exit",!t,{custom:null!=i?i:this.node.getProps().custom});e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let i1=(t,e)=>Math.abs(t-e);class i2{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=i6(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(i1(t.x,e.x)**2+i1(t.y,e.y)**2)>=3);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=t_;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=i3(e,this.transformPagePoint),tI.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=i6("pointercancel"===t.type?this.lastMoveEventInfo:i3(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!tH(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=i3(tG(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=t_;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,i6(s,this.history)),this.removeListeners=tZ(tX(this.contextWindow,"pointermove",this.handlePointerMove),tX(this.contextWindow,"pointerup",this.handlePointerUp),tX(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),tU(this.updatePoint)}}function i3(t,e){return e?{point:e(t.point)}:t}function i5(t,e){return{x:t.x-e.x,y:t.y-e.y}}function i6({point:t},e){return{point:t,delta:i5(t,i4(e)),offset:i5(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=i4(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>ea(.1)));)i--;if(!n)return{x:0,y:0};let s=el(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function i4(t){return t[t.length-1]}function i8(t){return t.max-t.min}function i9(t,e=0,i=.01){return Math.abs(t-e)<=i}function i7(t,e,i,n=.5){t.origin=n,t.originPoint=ej(e.min,e.max,t.origin),t.scale=i8(i)/i8(e),(i9(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=ej(i.min,i.max,t.origin)-t.originPoint,(i9(t.translate)||isNaN(t.translate))&&(t.translate=0)}function nt(t,e,i,n){i7(t.x,e.x,i.x,n?n.originX:void 0),i7(t.y,e.y,i.y,n?n.originY:void 0)}function ne(t,e,i){t.min=i.min+e.min,t.max=t.min+i8(e)}function ni(t,e,i){t.min=e.min-i.min,t.max=t.min+i8(e)}function nn(t,e,i){ni(t.x,e.x,i.x),ni(t.y,e.y,i.y)}function nr(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function ns(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min({translate:0,scale:1,origin:0,originPoint:0}),nu=()=>({x:nl(),y:nl()}),nh=()=>({min:0,max:0}),nd=()=>({x:nh(),y:nh()});function nc(t){return[t("x"),t("y")]}function np({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function nm(t){return void 0===t||1===t}function nf({scale:t,scaleX:e,scaleY:i}){return!nm(t)||!nm(e)||!nm(i)}function ng(t){return nf(t)||nv(t)||t.z||t.rotate||t.rotateX||t.rotateY}function nv(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function ny(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function nx(t,e=0,i=1,n,r){t.min=ny(t.min,e,i,n,r),t.max=ny(t.max,e,i,n,r)}function nb(t,{x:e,y:i}){nx(t.x,e.translate,e.scale,e.originPoint),nx(t.y,i.translate,i.scale,i.originPoint)}function nP(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function nw(t,e){t.min=t.min+e,t.max=t.max+e}function nS(t,e,[i,n,r]){let s=void 0!==e[r]?e[r]:.5,o=ej(t.min,t.max,s);nx(t,e[i],e[n],o,e.scale)}let nA=["x","scaleX","originX"],nT=["y","scaleY","originY"];function nE(t,e){nS(t.x,e,nA),nS(t.y,e,nT)}function nC(t,e){return np(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let nV=({current:t})=>t?t.ownerDocument.defaultView:null,nM=new WeakMap;class nj{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nd(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new i2(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tG(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=t0(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nc(t=>{let e=this.getAxisMotionValue(t).get()||0;if(ta.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=i8(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&tI.update(()=>r(t,e),!1,!0);let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>nc(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:nV(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&tI.update(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!nD(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&ti&&(t=n?ej(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&w(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:nr(t.x,i,r),y:nr(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:no(t,"left","right"),y:no(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&nc(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!w(e))return!1;let n=e.current;tB(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=function(t,e,i){let n=nC(t,i),{scroll:r}=e;return r&&(nw(n.x,r.offset.x),nw(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:ns((t=r.layout.layoutBox).x,s.x),y:ns(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=np(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nc(o=>{if(!nD(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start(iD(t,i,0,e))}stopAnimation(){nc(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nc(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){nc(e=>{let{drag:i}=this.getProps();if(!nD(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-ej(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!w(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nc(t=>{let e=this.getAxisMotionValue(t);if(e){let i=e.get();n[t]=function(t,e){let i=.5,n=i8(t),r=i8(e);return r>n?i=eM(e.min,e.max-n,t.min):n>r&&(i=eM(t.min,t.max-r,e.min)),Z(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),nc(e=>{if(!nD(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(ej(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;nM.set(this.visualElement,this);let t=tX(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();w(t)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),e();let r=t$(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nc(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function nD(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class nk extends t2{constructor(t){super(t),this.removeGroupControls=tB,this.removeListeners=tB,this.controls=new nj(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tB}unmount(){this.removeGroupControls(),this.removeListeners()}}let nR=t=>(e,i)=>{t&&tI.update(()=>t(e,i))};class nO extends t2{constructor(){super(...arguments),this.removePointerDownListener=tB}onPointerDown(t){this.session=new i2(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nV(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:nR(t),onStart:nR(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&tI.update(()=>n(t,e))}}}mount(){this.removePointerDownListener=tX(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let nL={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nF(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nB={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tl.test(t))return t;t=parseFloat(t)}let i=nF(t,e.target.x),n=nF(t,e.target.y);return`${i}% ${n}%`}};class nI extends a.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;Object.assign(B,n_),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),nL.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||tI.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),b.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nU(t){let[e,i]=function(){let t=(0,a.useContext)(h);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,r=(0,a.useId)();return(0,a.useEffect)(()=>n(r),[]),!e&&i?[!1,()=>i&&i(r)]:[!0]}(),n=(0,a.useContext)(k);return a.createElement(nI,{...t,layoutGroup:n,switchLayoutGroup:(0,a.useContext)(R),isPresent:e,safeToRemove:i})}let n_={borderRadius:{...nB,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nB,borderTopRightRadius:nB,borderBottomLeftRadius:nB,borderBottomRightRadius:nB,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=eJ.parse(t);if(n.length>5)return t;let r=eJ.createTransformer(t),s="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=ej(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}},nN=["TopLeft","TopRight","BottomLeft","BottomRight"],nz=nN.length,nW=t=>"string"==typeof t?parseFloat(t):t,n$=t=>"number"==typeof t||tl.test(t);function nH(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nG=nX(0,.5,ew),nY=nX(.5,.95,tB);function nX(t,e,i){return n=>ne?1:i(eM(t,e,n))}function nq(t,e){t.min=e.min,t.max=e.max}function nZ(t,e){nq(t.x,e.x),nq(t.y,e.y)}function nK(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function nJ(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(ta.test(e)&&(e=parseFloat(e),e=ej(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=ej(s.min,s.max,n);t===s&&(a-=e),t.min=nK(t.min,e,i,a,r),t.max=nK(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let nQ=["x","scaleX","originX"],n0=["y","scaleY","originY"];function n1(t,e,i,n){nJ(t.x,e,nQ,i?i.x:void 0,n?n.x:void 0),nJ(t.y,e,n0,i?i.y:void 0,n?n.y:void 0)}function n2(t){return 0===t.translate&&1===t.scale}function n3(t){return n2(t.x)&&n2(t.y)}function n5(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function n6(t){return i8(t.x)/i8(t.y)}class n4{constructor(){this.members=[]}add(t){iO(this.members,t),t.scheduleRender()}remove(t){if(iL(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function n8(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y;if((r||s)&&(n=`translate3d(${r}px, ${s}px, 0) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{rotate:t,rotateX:e,rotateY:r}=i;t&&(n+=`rotate(${t}deg) `),e&&(n+=`rotateX(${e}deg) `),r&&(n+=`rotateY(${r}deg) `)}let o=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==o||1!==a)&&(n+=`scale(${o}, ${a})`),n||"none"}let n9=(t,e)=>t.depth-e.depth;class n7{constructor(){this.children=[],this.isDirty=!1}add(t){iO(this.children,t),this.isDirty=!0}remove(t){iL(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(n9),this.isDirty=!1,this.children.forEach(t)}}let rt=["","X","Y","Z"],re={visibility:"hidden"},ri=0,rn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function rr({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=ri++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rn.totalNodes=rn.resolvedTargetDeltas=rn.recalculatedProjection=0,this.nodes.forEach(ra),this.nodes.forEach(rm),this.nodes.forEach(rf),this.nodes.forEach(rl),window.MotionDebug&&window.MotionDebug.record(rn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=io.now(),n=({timestamp:r})=>{let s=r-i;s>=e&&(tU(n),t(s-e))};return tI.read(n,!0),()=>tU(n)}(n,250),nL.hasAnimatedSinceResize&&(nL.hasAnimatedSinceResize=!1,this.nodes.forEach(rp))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||rP,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!n5(this.targetLayout,n)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...ij(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||rp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,tU(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rg),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;tthis.update()))}clearAllSnapshots(){this.nodes.forEach(ru),this.sharedNodes.forEach(rv)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tI.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tI.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t{let n=e/1e3;if(ry(o.x,t.x,n),ry(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m;nn(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,rx(p.x,m.x,a.x,n),rx(p.y,m.y,a.y,n),i&&(u=this.relativeTarget,c=i,u.x.min===c.x.min&&u.x.max===c.x.max&&u.y.min===c.y.min&&u.y.max===c.y.max)&&(this.isProjectionDirty=!1),i||(i=nd()),nZ(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=ej(0,void 0!==i.opacity?i.opacity:1,nG(n)),t.opacityExit=ej(void 0!==e.opacity?e.opacity:1,0,nY(n))):s&&(t.opacity=ej(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r{nL.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let n=N(t)?t:i_(t);return n.start(iD("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rT(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||nd();let e=i8(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=i8(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nZ(e,i),nE(e,r),nt(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new n4),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.rotate||i.rotateX||i.rotateY||i.rotateZ)&&(e=!0),!e)return;let n={};for(let e=0;e{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(rh),this.root.sharedNodes.clear()}}}function rs(t){t.updateLayout()}function ro(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?nc(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=i8(n);n.min=e[t].min,n.max=n.min+r}):rT(r,i.layoutBox,e)&&nc(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=i8(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=nu();nt(o,e,i.layoutBox);let a=nu();s?nt(a,t.applyTransform(n,!0),i.measuredBox):nt(a,e,i.layoutBox);let l=!n3(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=nd();nn(o,i.layoutBox,r.layoutBox);let a=nd();nn(a,e,s.layoutBox),n5(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ra(t){rn.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rl(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ru(t){t.clearSnapshot()}function rh(t){t.clearMeasurements()}function rd(t){t.isLayoutDirty=!1}function rc(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rp(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rm(t){t.resolveTargetDelta()}function rf(t){t.calcProjection()}function rg(t){t.resetRotation()}function rv(t){t.removeLeadSnapshot()}function ry(t,e,i){t.translate=ej(e.translate,0,i),t.scale=ej(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rx(t,e,i,n){t.min=ej(e.min,i.min,n),t.max=ej(e.max,i.max,n)}function rb(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rP={duration:.45,ease:[.4,0,.1,1]},rw=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rS=rw("applewebkit/")&&!rw("chrome/")?Math.round:tB;function rA(t){t.min=rS(t.min),t.max=rS(t.max)}function rT(t,e,i){return"position"===t||"preserve-aspect"===t&&!i9(n6(e),n6(i),.2)}let rE=rr({attachResizeListener:(t,e)=>t$(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rC={current:void 0},rV=rr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rC.current){let t=new rE({});t.mount(window),t.setOptions({layoutScroll:!0}),rC.current=t}return rC.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),rM=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function rj(t,e,i=1){tB(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,r]=function(t){let e=rM.exec(t);if(!e)return[,];let[,i,n]=e;return[i,n]}(t);if(!n)return;let s=window.getComputedStyle(e).getPropertyValue(n);if(s){let t=s.trim();return iR(t)?parseFloat(t):t}return Y(r)?rj(r,e,i+1):r}let rD=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),rk=t=>rD.has(t),rR=t=>Object.keys(t).some(rk),rO=t=>t===K||t===tl,rL=(t,e)=>parseFloat(t.split(", ")[e]),rF=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/);if(r)return rL(r[1],e);{let e=n.match(/^matrix\((.+)\)$/);return e?rL(e[1],t):0}},rB=new Set(["x","y","z"]),rI=I.filter(t=>!rB.has(t)),rU={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:rF(4,13),y:rF(5,14)};rU.translateX=rU.x,rU.translateY=rU.y;let r_=(t,e,i)=>{let n=e.measureViewportBox(),r=e.current,s=getComputedStyle(r),{display:o}=s,a={};"none"===o&&e.setStaticValue("display",t.display||"block"),i.forEach(t=>{a[t]=rU[t](n,s)}),e.render();let l=e.measureViewportBox();return i.forEach(i=>{let n=e.getValue(i);n&&n.jump(a[i]),t[i]=rU[i](l,s)}),t},rN=(t,e,i={},n={})=>{e={...e},n={...n};let r=Object.keys(e).filter(rk),s=[],o=!1,a=[];if(r.forEach(r=>{let l;let u=t.getValue(r);if(!t.hasValue(r))return;let h=i[r],d=iW(h),c=e[r];if(tk(c)){let t=c.length,e=null===c[0]?1:0;d=iW(h=c[e]);for(let i=e;i{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),o=!0),a.push(r),n[r]=void 0!==n[r]?n[r]:e[r],u.jump(c))}}),!a.length)return{target:e,transitionEnd:n};{let i=a.indexOf("height")>=0?window.pageYOffset:null,r=r_(e,t,a);return s.length&&s.forEach(([e,i])=>{t.getValue(e).set(i)}),t.render(),d&&null!==i&&window.scrollTo({top:i}),{target:r,transitionEnd:n}}},rz=(t,e,i,n)=>{var r,s;let o=function(t,{...e},i){let n=t.current;if(!(n instanceof Element))return{target:e,transitionEnd:i};for(let r in i&&(i={...i}),t.values.forEach(t=>{let e=t.get();if(!Y(e))return;let i=rj(e,n);i&&t.set(i)}),e){let t=e[r];if(!Y(t))continue;let s=rj(t,n);s&&(e[r]=s,i||(i={}),void 0===i[r]&&(i[r]=t))}return{target:e,transitionEnd:i}}(t,e,n);return e=o.target,n=o.transitionEnd,r=e,s=n,rR(r)?rN(t,r,i,s):{target:r,transitionEnd:s}},rW={current:null},r$={current:!1},rH=new WeakMap,rG=Object.keys(D),rY=rG.length,rX=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rq=E.length;class rZ{constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,visualState:r},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>tI.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.isControllingVariants=C(e),this.isVariantNode=V(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(let t in u){let e=u[t];void 0!==o[t]&&N(e)&&(e.set(o[t],!1),ik(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,rH.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),r$.current||function(){if(r$.current=!0,d){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rW.current=t.matches;t.addListener(e),e()}else rW.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rW.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in rH.delete(this.current),this.projection&&this.projection.unmount(),tU(this.notifyUpdate),tU(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let i=U.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tI.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{n(),r()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},i,n,r){let s,o;for(let t=0;tthis.scheduleRender(),animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}return o}updateFeatures(){for(let t in this.features){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nd()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=i_(e,{owner:this}),this.addValue(t,i)),i}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:i}=this.props,n="string"==typeof i||"object"==typeof i?null===(e=tD(this.props,i))||void 0===e?void 0:e[t]:void 0;if(i&&void 0!==n)return n;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||N(r)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new iF),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class rK extends rZ{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...i},n){let r=function(t,e,i){let n={};for(let r in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(r,e);if(void 0!==t)n[r]=t;else{let t=i.getValue(r);t&&(n[r]=t.get())}}return n}(i,t||{},this);if(n){!function(t,e,i){var n,r;let s=Object.keys(e).filter(e=>!t.hasValue(e)),o=s.length;if(o)for(let a=0;a{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,n){tE(t,e,i,n)}}class rQ extends rK{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(U.has(e)){let t=iC(e);return t&&t.default||0}return e=tC.has(e)?e:m(e),t.getAttribute(e)}measureInstanceViewportBox(){return nd()}scrapeMotionValuesFromProps(t,e){return tj(t,e)}build(t,e,i,n){tS(t,e,i,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,i,n){tV(t,e,i,n)}mount(t){this.isSVGTag=tT(t.tagName),super.mount(t)}}let r0=(t,e)=>F(t)?new rQ(e,{enableHardwareAcceleration:!1}):new rJ(e,{enableHardwareAcceleration:!0}),r1={animation:{Feature:iJ},exit:{Feature:i0},inView:{Feature:er},tap:{Feature:t9},focus:{Feature:t6},hover:{Feature:t5},pan:{Feature:nO},drag:{Feature:nk,ProjectionNode:rV,MeasureLayout:nU},layout:{ProjectionNode:rV,MeasureLayout:nU}},r2=function(t){function e(e,i={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:n,Component:r}){t&&function(t){for(let e in t)D[e]={...D[e],...t[e]}}(t);let s=(0,a.forwardRef)(function(s,o){var m;let g;let v={...(0,a.useContext)(l),...s,layoutId:function({layoutId:t}){let e=(0,a.useContext)(k).id;return e&&void 0!==t?e+"-"+t:t}(s)},{isStatic:y}=v,x=function(t){let{initial:e,animate:i}=function(t,e){if(C(t)){let{initial:e,animate:i}=t;return{initial:!1===e||S(e)?e:void 0,animate:S(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,a.useContext)(u));return(0,a.useMemo)(()=>({initial:e,animate:i}),[M(e),M(i)])}(s),P=n(s,y);if(!y&&d){x.visualElement=function(t,e,i,n){let{visualElement:r}=(0,a.useContext)(u),s=(0,a.useContext)(p),o=(0,a.useContext)(h),d=(0,a.useContext)(l).reducedMotion,m=(0,a.useRef)();n=n||s.renderer,!m.current&&n&&(m.current=n(t,{visualState:e,parent:r,props:i,presenceContext:o,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:d}));let g=m.current;(0,a.useInsertionEffect)(()=>{g&&g.update(i,o)});let v=(0,a.useRef)(!!(i[f]&&!window.HandoffComplete));return c(()=>{g&&(b.postRender(g.render),v.current&&g.animationState&&g.animationState.animateChanges())}),(0,a.useEffect)(()=>{g&&(g.updateFeatures(),!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(v.current=!1,window.HandoffComplete=!0))}),g}(r,P,v,e);let i=(0,a.useContext)(R),n=(0,a.useContext)(p).strict;x.visualElement&&(g=x.visualElement.loadFeatures(v,n,t,i))}return a.createElement(u.Provider,{value:x},g&&x.visualElement?a.createElement(g,{visualElement:x.visualElement,...v}):null,i(r,s,(m=x.visualElement,(0,a.useCallback)(t=>{t&&P.mount&&P.mount(t),m&&(t?m.mount(t):m.unmount()),o&&("function"==typeof o?o(t):w(o)&&(o.current=t))},[m])),P,y,x.visualElement))});return s[O]=r,s}(t(e,i))}if("undefined"==typeof Proxy)return e;let i=new Map;return new Proxy(e,{get:(t,n)=>(i.has(n)||i.set(n,e(n)),i.get(n))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},i,n){return{...F(t)?tz:tW,preloadedFeatures:i,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>{let o=(F(e)?function(t,e,i,n){let r=(0,a.useMemo)(()=>{let i=tA();return tS(i,e,{enableHardwareAcceleration:!1},tT(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};tg(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e,i){let n={},r=function(t,e,i){let n=t.style||{},r={};return tg(r,n,t),Object.assign(r,function({transformTemplate:t},e,i){return(0,a.useMemo)(()=>{let n=tf();return tm(n,e,{enableHardwareAcceleration:!i},t),Object.assign({},n.vars,n.style)},[e])}(t,e,i)),r}(t,e,i);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n})(i,r,s,e),l=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(tx(r)||!0===i&&ty(r)||!e&&!ty(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),u=e!==a.Fragment?{...l,...o,ref:n}:{},{children:h}=i,d=(0,a.useMemo)(()=>N(h)?h.get():h,[h]);return(0,a.createElement)(e,{...u,children:d})}}(e),createVisualElement:n,Component:t}})(t,e,r1,r0))},158:function(t,e,i){i.d(e,{w_:function(){return h}});var n=i(2265),r={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},s=n.createContext&&n.createContext(r),o=["attr","size","title"];function a(){return(a=Object.assign?Object.assign.bind():function(t){for(var e=1;en.createElement(d,a({attr:u({},t.attr)},e),function t(e){return e&&e.map((e,i)=>n.createElement(e.tag,u({key:i},e.attr),t(e.child)))}(t.child))}function d(t){var e=e=>{var i,{attr:r,size:s,title:l}=t,h=function(t,e){if(null==t)return{};var i,n,r=function(t,e){if(null==t)return{};var i,n,r={},s=Object.keys(t);for(n=0;n=0||(r[i]=t[i]);return r}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}(t,o),d=s||e.size||"1em";return e.className&&(i=e.className),t.className&&(i=(i?i+" ":"")+t.className),n.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,r,h,{className:i,style:u(u({color:t.color||e.color},e.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),l&&n.createElement("title",null,l),t.children)};return void 0!==s?n.createElement(s.Consumer,null,t=>e(t)):e(r)}}}]);